#define _CRT_SECURE_NO_WARNINGS 1 

#include "string.h"
namespace cgc
{
	void test1()
	{
		string s1("hello world");
		//cout << s1.c_str() << endl;
		string s2 = s1;
		/*cout << s2.c_str() << endl;
		for (int i = 0; i < s1.size(); i++)
		{
			cout << s1[i] << endl;
		}
		for (auto ch: s1)
		{
			cout << ch << endl;
		}*/
		string s3;
		s3.append("abcdefg");
		s3.pop_back();
		s3.insert(0, 'a');
		s3.insert(0, "aaa");
		//s3.erase(3,4);
		/*size_t pos = s3.find("bcdef");*/
		/*cout << s3.c_str() << endl;
		cout << s3.substr(2).c_str() << endl;*/
		string s4 = "aaaa";
		string s5 = "aaaabbb";
		s5 += "ccc";
		//cout << (s4 < s5) << endl;
		//cout << (s4 == s5) << endl;
		/*cout << s5 << endl;*/
		s4 = s5;
		string s6;
		//cin >> s6;
		/*cout << s6 << endl;*/
		getline(cin, s6);
		cout << s6 << endl;
	}
}

int main()
{
	cgc::test1();

	return 0;
}